package com.gurun.camera.account.model;

import com.danale.sdk.Danale;
import com.danale.sdk.platform.result.user.CheckForgetPasswordResult;
import com.danale.sdk.platform.result.user.CheckRegistV2Result;

import rx.Observable;

/**
 * Created by danal on 2016/9/9.
 */

public class SetPasswordModelImpl implements ISetPasswordModel {

    @Override
    public Observable<CheckRegistV2Result> createAccount(String userName, String passWord, String verificationCode, String phoneCode) {
        return Danale.get().getAccountService().checkRegistV2(0,userName,passWord,verificationCode,phoneCode);
    }

    @Override
    public Observable<CheckForgetPasswordResult> forgotPwdResetAccount(String userName, String passWord, String verificationCode, String phoneCode) {
        return Danale.get().getAccountService().checkForgetPassword(1,userName,passWord,verificationCode,phoneCode);
    }

}
